
var GridView = new Class({
  initialize: function(TableDescr) {
    
  },
  injectSectionContent: function(data, node) {
    var s = "<table>";
    var odd = true;
    var colid = 0;
    data.inner.each(function(row) {
      s+='<tr class="'+(odd?'odd':'even')+'">';
      odd=!odd;
      colid=0;
      row.each(function(item) {
        colid+=1;
        s+='<td class="col'+colid+'"><span>';
        s+=item;
        s+='</span>';
      });
      s+='</tr>';
    });
    s+='</table>';
    data.sections.each(function(section) {
      s+='<div class="section closed"><span>';
      s+=section;
      s+='</span></div>';
    });
    node.set('html',s);
/*
    <table>
    // foreach line
      <tr class="odd|even">
      // for each column
        <td class="col?"><span>?</span></td>
      </tr>
    </table>
    // foreach section
      <div class="section closed"><span>?</span></div>
*/
  }
});
